package com.gusti.turnos.form;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 
 * @author gusti
 *
 */
public class UserForm {

	private long id;
	@NotEmpty(message="Name is required!")
	private String name;
	@NotEmpty(message="Surname is required!")
	private String surname;
	@NotEmpty(message="Email is required!")
	@Email(message="Email is bad-formed!")
	private String email;
	private boolean admin;

	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return surname;
	}
	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}

	public boolean isAdmin() {
		return admin;
	}
	public void setAdmin(boolean admin) {
		this.admin = admin;
	}
}
